using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class UploadToWeiboRequest : GeneratedMessageLite<UploadToWeiboRequest, UploadToWeiboRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<UploadToWeiboRequest, UploadToWeiboRequest.Builder>
		{
			private bool resultIsReadOnly;
			private UploadToWeiboRequest result;
			protected override UploadToWeiboRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override UploadToWeiboRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override UploadToWeiboRequest DefaultInstanceForType
			{
				get
				{
					return UploadToWeiboRequest.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public string ClientMsgId
			{
				get
				{
					return this.result.ClientMsgId;
				}
				set
				{
					this.SetClientMsgId(value);
				}
			}
			public uint Type
			{
				get
				{
					return this.result.Type;
				}
				set
				{
					this.SetType(value);
				}
			}
			public uint TotalLen
			{
				get
				{
					return this.result.TotalLen;
				}
				set
				{
					this.SetTotalLen(value);
				}
			}
			public uint StartPos
			{
				get
				{
					return this.result.StartPos;
				}
				set
				{
					this.SetStartPos(value);
				}
			}
			public uint DataLen
			{
				get
				{
					return this.result.DataLen;
				}
				set
				{
					this.SetDataLen(value);
				}
			}
			public ByteString Data
			{
				get
				{
					return this.result.Data;
				}
				set
				{
					this.SetData(value);
				}
			}
			public string Content
			{
				get
				{
					return this.result.Content;
				}
				set
				{
					this.SetContent(value);
				}
			}
			public uint FilterType
			{
				get
				{
					return this.result.FilterType;
				}
				set
				{
					this.SetFilterType(value);
				}
			}
			public Builder()
			{
				this.result = UploadToWeiboRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(UploadToWeiboRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private UploadToWeiboRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					UploadToWeiboRequest other = this.result;
					this.result = new UploadToWeiboRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override UploadToWeiboRequest.Builder Clear()
			{
				this.result = UploadToWeiboRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override UploadToWeiboRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new UploadToWeiboRequest.Builder(this.result);
				}
				return new UploadToWeiboRequest.Builder().MergeFrom(this.result);
			}
			public override UploadToWeiboRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override UploadToWeiboRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is UploadToWeiboRequest)
				{
					return this.MergeFrom((UploadToWeiboRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override UploadToWeiboRequest.Builder MergeFrom(UploadToWeiboRequest other)
			{
				return this;
			}
			public override UploadToWeiboRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override UploadToWeiboRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(UploadToWeiboRequest._uploadToWeiboRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = UploadToWeiboRequest._uploadToWeiboRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 32u)
					{
						if (num3 <= 10u)
						{
							if (num3 == 0u)
							{
								throw InvalidProtocolBufferException.InvalidTag();
							}
							if (num3 == 10u)
							{
								BaseRequest.Builder builder = BaseRequest.CreateBuilder();
								if (this.result.hasBaseRequest)
								{
									builder.MergeFrom(this.BaseRequest);
								}
								input.ReadMessage(builder, extensionRegistry);
								this.BaseRequest = builder.BuildPartial();
								continue;
							}
						}
						else
						{
							if (num3 == 18u)
							{
								this.result.hasClientMsgId = input.ReadString(ref this.result.clientMsgId_);
								continue;
							}
							if (num3 == 24u)
							{
								this.result.hasType = input.ReadUInt32(ref this.result.type_);
								continue;
							}
							if (num3 == 32u)
							{
								this.result.hasTotalLen = input.ReadUInt32(ref this.result.totalLen_);
								continue;
							}
						}
					}
					else
					{
						if (num3 <= 48u)
						{
							if (num3 == 40u)
							{
								this.result.hasStartPos = input.ReadUInt32(ref this.result.startPos_);
								continue;
							}
							if (num3 == 48u)
							{
								this.result.hasDataLen = input.ReadUInt32(ref this.result.dataLen_);
								continue;
							}
						}
						else
						{
							if (num3 == 58u)
							{
								this.result.hasData = input.ReadBytes(ref this.result.data_);
								continue;
							}
							if (num3 == 66u)
							{
								this.result.hasContent = input.ReadString(ref this.result.content_);
								continue;
							}
							if (num3 == 72u)
							{
								this.result.hasFilterType = input.ReadUInt32(ref this.result.filterType_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public UploadToWeiboRequest.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public UploadToWeiboRequest.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public UploadToWeiboRequest.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public UploadToWeiboRequest.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public UploadToWeiboRequest.Builder SetClientMsgId(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasClientMsgId = true;
				this.result.clientMsgId_ = value;
				return this;
			}
			public UploadToWeiboRequest.Builder ClearClientMsgId()
			{
				this.PrepareBuilder();
				this.result.hasClientMsgId = false;
				this.result.clientMsgId_ = "";
				return this;
			}
			public UploadToWeiboRequest.Builder SetType(uint value)
			{
				this.PrepareBuilder();
				this.result.hasType = true;
				this.result.type_ = value;
				return this;
			}
			public UploadToWeiboRequest.Builder ClearType()
			{
				this.PrepareBuilder();
				this.result.hasType = false;
				this.result.type_ = 0u;
				return this;
			}
			public UploadToWeiboRequest.Builder SetTotalLen(uint value)
			{
				this.PrepareBuilder();
				this.result.hasTotalLen = true;
				this.result.totalLen_ = value;
				return this;
			}
			public UploadToWeiboRequest.Builder ClearTotalLen()
			{
				this.PrepareBuilder();
				this.result.hasTotalLen = false;
				this.result.totalLen_ = 0u;
				return this;
			}
			public UploadToWeiboRequest.Builder SetStartPos(uint value)
			{
				this.PrepareBuilder();
				this.result.hasStartPos = true;
				this.result.startPos_ = value;
				return this;
			}
			public UploadToWeiboRequest.Builder ClearStartPos()
			{
				this.PrepareBuilder();
				this.result.hasStartPos = false;
				this.result.startPos_ = 0u;
				return this;
			}
			public UploadToWeiboRequest.Builder SetDataLen(uint value)
			{
				this.PrepareBuilder();
				this.result.hasDataLen = true;
				this.result.dataLen_ = value;
				return this;
			}
			public UploadToWeiboRequest.Builder ClearDataLen()
			{
				this.PrepareBuilder();
				this.result.hasDataLen = false;
				this.result.dataLen_ = 0u;
				return this;
			}
			public UploadToWeiboRequest.Builder SetData(ByteString value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasData = true;
				this.result.data_ = value;
				return this;
			}
			public UploadToWeiboRequest.Builder ClearData()
			{
				this.PrepareBuilder();
				this.result.hasData = false;
				this.result.data_ = ByteString.Empty;
				return this;
			}
			public UploadToWeiboRequest.Builder SetContent(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasContent = true;
				this.result.content_ = value;
				return this;
			}
			public UploadToWeiboRequest.Builder ClearContent()
			{
				this.PrepareBuilder();
				this.result.hasContent = false;
				this.result.content_ = "";
				return this;
			}
			public UploadToWeiboRequest.Builder SetFilterType(uint value)
			{
				this.PrepareBuilder();
				this.result.hasFilterType = true;
				this.result.filterType_ = value;
				return this;
			}
			public UploadToWeiboRequest.Builder ClearFilterType()
			{
				this.PrepareBuilder();
				this.result.hasFilterType = false;
				this.result.filterType_ = 0u;
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		public const int ClientMsgIdFieldNumber = 2;
		public const int TypeFieldNumber = 3;
		public const int TotalLenFieldNumber = 4;
		public const int StartPosFieldNumber = 5;
		public const int DataLenFieldNumber = 6;
		public const int DataFieldNumber = 7;
		public const int ContentFieldNumber = 8;
		public const int FilterTypeFieldNumber = 9;
		private static readonly UploadToWeiboRequest defaultInstance;
		private static readonly string[] _uploadToWeiboRequestFieldNames;
		private static readonly uint[] _uploadToWeiboRequestFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasClientMsgId;
		private string clientMsgId_ = "";
		private bool hasType;
		private uint type_;
		private bool hasTotalLen;
		private uint totalLen_;
		private bool hasStartPos;
		private uint startPos_;
		private bool hasDataLen;
		private uint dataLen_;
		private bool hasData;
		private ByteString data_ = ByteString.Empty;
		private bool hasContent;
		private string content_ = "";
		private bool hasFilterType;
		private uint filterType_;
		private int memoizedSerializedSize = -1;
		public static UploadToWeiboRequest DefaultInstance
		{
			get
			{
				return UploadToWeiboRequest.defaultInstance;
			}
		}
		public override UploadToWeiboRequest DefaultInstanceForType
		{
			get
			{
				return UploadToWeiboRequest.DefaultInstance;
			}
		}
		protected override UploadToWeiboRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public string ClientMsgId
		{
			get
			{
				return this.clientMsgId_;
			}
		}
		public uint Type
		{
			get
			{
				return this.type_;
			}
		}
		public uint TotalLen
		{
			get
			{
				return this.totalLen_;
			}
		}
		public uint StartPos
		{
			get
			{
				return this.startPos_;
			}
		}
		public uint DataLen
		{
			get
			{
				return this.dataLen_;
			}
		}
		public ByteString Data
		{
			get
			{
				return this.data_;
			}
		}
		public string Content
		{
			get
			{
				return this.content_;
			}
		}
		public uint FilterType
		{
			get
			{
				return this.filterType_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseRequest && this.hasType && this.hasTotalLen && this.hasStartPos && this.hasDataLen && this.hasFilterType && this.BaseRequest.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				if (this.hasClientMsgId)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.ClientMsgId);
				}
				if (this.hasType)
				{
					num += CodedOutputStream.ComputeUInt32Size(3, this.Type);
				}
				if (this.hasTotalLen)
				{
					num += CodedOutputStream.ComputeUInt32Size(4, this.TotalLen);
				}
				if (this.hasStartPos)
				{
					num += CodedOutputStream.ComputeUInt32Size(5, this.StartPos);
				}
				if (this.hasDataLen)
				{
					num += CodedOutputStream.ComputeUInt32Size(6, this.DataLen);
				}
				if (this.hasData)
				{
					num += CodedOutputStream.ComputeBytesSize(7, this.Data);
				}
				if (this.hasContent)
				{
					num += CodedOutputStream.ComputeStringSize(8, this.Content);
				}
				if (this.hasFilterType)
				{
					num += CodedOutputStream.ComputeUInt32Size(9, this.FilterType);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private UploadToWeiboRequest()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] uploadToWeiboRequestFieldNames = UploadToWeiboRequest._uploadToWeiboRequestFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, uploadToWeiboRequestFieldNames[0], this.BaseRequest);
			}
			if (this.hasClientMsgId)
			{
				output.WriteString(2, uploadToWeiboRequestFieldNames[1], this.ClientMsgId);
			}
			if (this.hasType)
			{
				output.WriteUInt32(3, uploadToWeiboRequestFieldNames[8], this.Type);
			}
			if (this.hasTotalLen)
			{
				output.WriteUInt32(4, uploadToWeiboRequestFieldNames[7], this.TotalLen);
			}
			if (this.hasStartPos)
			{
				output.WriteUInt32(5, uploadToWeiboRequestFieldNames[6], this.StartPos);
			}
			if (this.hasDataLen)
			{
				output.WriteUInt32(6, uploadToWeiboRequestFieldNames[4], this.DataLen);
			}
			if (this.hasData)
			{
				output.WriteBytes(7, uploadToWeiboRequestFieldNames[3], this.Data);
			}
			if (this.hasContent)
			{
				output.WriteString(8, uploadToWeiboRequestFieldNames[2], this.Content);
			}
			if (this.hasFilterType)
			{
				output.WriteUInt32(9, uploadToWeiboRequestFieldNames[5], this.FilterType);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasClientMsgId)
			{
				num ^= this.clientMsgId_.GetHashCode();
			}
			if (this.hasType)
			{
				num ^= this.type_.GetHashCode();
			}
			if (this.hasTotalLen)
			{
				num ^= this.totalLen_.GetHashCode();
			}
			if (this.hasStartPos)
			{
				num ^= this.startPos_.GetHashCode();
			}
			if (this.hasDataLen)
			{
				num ^= this.dataLen_.GetHashCode();
			}
			if (this.hasData)
			{
				num ^= this.data_.GetHashCode();
			}
			if (this.hasContent)
			{
				num ^= this.content_.GetHashCode();
			}
			if (this.hasFilterType)
			{
				num ^= this.filterType_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			UploadToWeiboRequest uploadToWeiboRequest = object_0 as UploadToWeiboRequest;
			return uploadToWeiboRequest != null && (this.hasBaseRequest == uploadToWeiboRequest.hasBaseRequest && (!this.hasBaseRequest || this.baseRequest_.Equals(uploadToWeiboRequest.baseRequest_))) && (this.hasClientMsgId == uploadToWeiboRequest.hasClientMsgId && (!this.hasClientMsgId || this.clientMsgId_.Equals(uploadToWeiboRequest.clientMsgId_))) && (this.hasType == uploadToWeiboRequest.hasType && (!this.hasType || this.type_.Equals(uploadToWeiboRequest.type_))) && (this.hasTotalLen == uploadToWeiboRequest.hasTotalLen && (!this.hasTotalLen || this.totalLen_.Equals(uploadToWeiboRequest.totalLen_))) && (this.hasStartPos == uploadToWeiboRequest.hasStartPos && (!this.hasStartPos || this.startPos_.Equals(uploadToWeiboRequest.startPos_))) && (this.hasDataLen == uploadToWeiboRequest.hasDataLen && (!this.hasDataLen || this.dataLen_.Equals(uploadToWeiboRequest.dataLen_))) && (this.hasData == uploadToWeiboRequest.hasData && (!this.hasData || this.data_.Equals(uploadToWeiboRequest.data_))) && (this.hasContent == uploadToWeiboRequest.hasContent && (!this.hasContent || this.content_.Equals(uploadToWeiboRequest.content_))) && (this.hasFilterType == uploadToWeiboRequest.hasFilterType && (!this.hasFilterType || this.filterType_.Equals(uploadToWeiboRequest.filterType_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<UploadToWeiboRequest, UploadToWeiboRequest.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<UploadToWeiboRequest, UploadToWeiboRequest.Builder>.PrintField("ClientMsgId", this.hasClientMsgId, this.clientMsgId_, writer);
			GeneratedMessageLite<UploadToWeiboRequest, UploadToWeiboRequest.Builder>.PrintField("Type", this.hasType, this.type_, writer);
			GeneratedMessageLite<UploadToWeiboRequest, UploadToWeiboRequest.Builder>.PrintField("TotalLen", this.hasTotalLen, this.totalLen_, writer);
			GeneratedMessageLite<UploadToWeiboRequest, UploadToWeiboRequest.Builder>.PrintField("StartPos", this.hasStartPos, this.startPos_, writer);
			GeneratedMessageLite<UploadToWeiboRequest, UploadToWeiboRequest.Builder>.PrintField("DataLen", this.hasDataLen, this.dataLen_, writer);
			GeneratedMessageLite<UploadToWeiboRequest, UploadToWeiboRequest.Builder>.PrintField("Data", this.hasData, this.data_, writer);
			GeneratedMessageLite<UploadToWeiboRequest, UploadToWeiboRequest.Builder>.PrintField("Content", this.hasContent, this.content_, writer);
			GeneratedMessageLite<UploadToWeiboRequest, UploadToWeiboRequest.Builder>.PrintField("FilterType", this.hasFilterType, this.filterType_, writer);
		}
		public static UploadToWeiboRequest ParseFrom(byte[] data)
		{
			return UploadToWeiboRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private UploadToWeiboRequest MakeReadOnly()
		{
			return this;
		}
		public static UploadToWeiboRequest.Builder CreateBuilder()
		{
			return new UploadToWeiboRequest.Builder();
		}
		public override UploadToWeiboRequest.Builder ToBuilder()
		{
			return UploadToWeiboRequest.CreateBuilder(this);
		}
		public override UploadToWeiboRequest.Builder CreateBuilderForType()
		{
			return new UploadToWeiboRequest.Builder();
		}
		public static UploadToWeiboRequest.Builder CreateBuilder(UploadToWeiboRequest prototype)
		{
			return new UploadToWeiboRequest.Builder(prototype);
		}
		static UploadToWeiboRequest()
		{
			UploadToWeiboRequest.defaultInstance = new UploadToWeiboRequest().MakeReadOnly();
			UploadToWeiboRequest._uploadToWeiboRequestFieldNames = new string[]
			{
				"BaseRequest",
				"ClientMsgId",
				"Content",
				"Data",
				"DataLen",
				"FilterType",
				"StartPos",
				"TotalLen",
				"Type"
			};
			UploadToWeiboRequest._uploadToWeiboRequestFieldTags = new uint[]
			{
				10u,
				18u,
				66u,
				58u,
				48u,
				72u,
				40u,
				32u,
				24u
			};
			object.ReferenceEquals(micromsg.Proto.UploadToWeiboRequest.Descriptor, null);
		}
	}
}
